﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Collections;
using hessiancsharp.server;

namespace HessianService
{
    //CHessianHandler
    public class Service : CHessianHandler,IService
    {
        public string Hello(string name)
        {
            return "Hello" + name;
        }
        public DateTime Test(DateTime dateTime)
        {
            return dateTime;
        }
        public User GetUser(string name,string sex,int age)
        {
            User user = new User()
                            {
                                Name = name,
                                Sex = sex,
                                Age = age
                            };
            return user;
        }
        public string Hello(IDictionary name)
        {
            return "Hello" + name[0];
        }
    }
}